package com.echo.model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;
import com.google.gson.Gson;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.Calendar;

/**
 * Created by EchoGe on 2016/6/2.
 */
public class DayStep{
    private int id;
    private int userId;
    private int steps;
    private Calendar date;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getSteps() {
        return steps;
    }

    public void setSteps(int steps) {
        this.steps = steps;
    }

    public Calendar getDate() {
        return date;
    }

    public void setDate(Calendar date) {
        this.date = date;
    }

    public static void main(String[] args){
        DayStep step=new DayStep();
        step.setDate(Calendar.getInstance());
        Gson gson=new Gson();
        System.out.println(gson.toJson(step));
    }
}
